# 数据库连接配置
import os

db_config = {
    'connections': {
        'default': {
            'engine': 'tortoise.backends.mysql',
            'credentials': {
                'host': '106.14.141.127',  # 106.14.141.127
                'port': '3306',
                'user': 'mbrb',  # mbrb
                'password': 'mbrb_2018@hi',  # mbrb_2018@hi
                'database': 'psyc_hibaby_service',
                "maxsize": "15",
                "minsize": "5",
            }
        },
    },
    'apps': {
        'auth': {
            'models': ['models.baby_words', 'models.explore', 'models.mirror_forest', 'models.wise_counsel'],
            'default_connection': 'default',
        }
    }
}


# 基本配置
class BaseConfig:
    ALI_YUN_CONFIG = ()
    WE_CHAT_CONFIG = ()
    TIMEZONE = 'Asia/Shanghai'
    USE_I18N = True
    USE_L10N = True
    USE_TZ = False
    DB_CONFIG = db_config
    BASE_DIR = os.path.dirname(os.path.dirname(__file__))